package com.qding.park.adapter.report.valid;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;
import javax.validation.constraints.NotNull;
    
@Constraint(validatedBy={OutOpSpecialValid.class})
@Documented
@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
public @interface OutOpSpecial {
    
    String message() default "处场特殊处理必须为freeCar(免费车),fireEngine(消防车)之一";

    Class<?>[] groups() default {};
    
    Class<? extends Payload>[] payload() default {};
    
}
